package QC.MessageBox.beans.appmsg;

import io.vertx.core.json.JsonObject;

/**
 * Created by Andaren on 2017/6/14.
 * Used for: 图片信息
 */
public class ImageInfo {

    private String url;

    private Integer width;

    private Integer height;

    public Integer getWidth() {
        return width;
    }

    public ImageInfo setWidth(Integer width) {
        this.width = width;
        return this;
    }

    public Integer getHeight() {
        return height;
    }

    public ImageInfo setHeight(Integer height) {
        this.height = height;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public ImageInfo setUrl(String url) {
        this.url = url;
        return this;
    }

    public JsonObject toJson() {
        return new JsonObject()
                .put("width", width)
                .put("height", height);
    }
}
